<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .setOne {
        font-size: 10px;
    }
    .setTwo {
        font-size: 20px;
        transform: scale(0.5);  /* 缩小1倍 */ 
        transform-origin: left center; /* 改变元素变形的原点 */
        display: block;
        height: 10px;
    }
</style>
<body>
    <span class="setOne">我是文字1</span>
    <hr/>
    <span class="setTwo">我是文字2</span>
</body>
</html>